package com.jt.mall.controller;

import com.jt.mall.common.entity.RspResult;
import com.jt.mall.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangning
 * @create 2021-12-27 11:14
 */
@RestController
@RequestMapping("/item")
public class ItemController {
	@Autowired
	private ItemService itemService;


	@GetMapping("/list")
	public RspResult findItemAndDesc () {
		return RspResult.ok(itemService.findItemList());
	}

}
